home *** CD-ROM | disk | FTP | other *** search
/ Adobe Digital Video Collection / Digital Video Collection CD.iso / After Effects 5.5 / MMScriptEng.Cab / F115589_toeffect.mm < prev   
Encoding:
Text File  |  2001-12-07  |  1.0 KB  |  20 lines

  1. // Apply to Effect Point - Version 1.1
  2.  
  3. // This Program Sets the value of the first set of popups
  4. // to the value of the second set of popups multiplied by
  5. // "scale_factor", assuming that the first property is an effect point.
  6.  
  7. //      LAYER                                   PROPERTY                     CHANNEL
  8. //      ------                                  ----------                     --------
  9. // 1: layer which has an effect        effect point control       channel of effect point control
  10. // 2: layer to copy position from     Position                        channel of position property
  11.  
  12. // I assume that the first value is an effect
  13. // point control, and so I wrap the evaluation in comp_to_layer,
  14. // since effect point controls are defined in layer coordinates.
  15.  
  16. scale_factor = 1.0;    // change this to scale values as they are copied
  17. value(pop_layer(1), pop_property(1)) [pop_channel(1)] =
  18.   comp_to_layer(pop_layer(1), 
  19.                                                   value(pop_layer(2), pop_property(2)) [pop_channel(2)]) * scale_factor;
  20.